<?php
class Zend_View_Helper_ProductUrl extends Zend_View_Helper_Abstract
{
	public function productUrl($id)
	{
        $tableProduct = new Article();
        $Product = $tableProduct->get($id);
        if (!$Product) return "";
        $FinalAlias = $this->view->categoryUrl($Product['Article']['category_id']) . '/' . $Product['Article']['Alias'] . "_" . $Product['Article']['id'] . ".html";
        return   $FinalAlias ;
       // exit(); 
        return $this->view->baseUrl($FinalAlias);
	}
}